/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.gui.mvc.utilities;

import java.util.Map;

/**
 *
 * @author nurhat
 */
public class AtofEntryItem implements Map.Entry {

    private Object m_ObjectId;
    private Object m_ObjectValue;

    public AtofEntryItem(Object key, Object value) {
        m_ObjectId = key;
        m_ObjectValue = value;
    }

    public AtofEntryItem(Map.Entry entry) {
        m_ObjectId = entry.getKey();
        m_ObjectValue = entry.getValue();
    }

    @Override
    public Object getKey() {
        return m_ObjectId;
    }

    @Override
    public Object getValue() {
        return m_ObjectValue;
    }

    @Override
    public Object setValue(Object value) {
        m_ObjectValue = value;
        return m_ObjectValue;
    }

    @Override
    public String toString() {
        return m_ObjectValue.toString();
    }
}
